Carbon


MPTaskIsPreemptive

Header: Multiprocessing.h Carbon status: Supported

Determines whether a task is preemptively scheduled.

Boolean MPTaskIsPreemptive (
    MPTaskID taskID
);
taskID

The task you want to check. Pass kMPInvalidIDErr if you want to specify the current task.

function result

If true, the task is preemptively scheduled. If false, the task is cooperatively scheduled.

DISCUSSION

If you have code that may be called from either cooperative or preemptive tasks, that code can call MPTaskIsPreemptive if its actions should differ depending on its execution environment.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)